package cn.edu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Mr.ma
 * @since 2023/1/3 21:38
 **/
@Controller
public class MainController {
    @RequestMapping("/main")
    public String main(){
        return "main";
    }


    @RequestMapping("/fail")
    @ResponseBody
    public String fail(){
        return "登录失败";
    }

}
